package com.example.day06.ex01;

public class Test04 {
    public static void main(String[] args) {
        int[ ]arr={1,2,3,4,5};
        int sum=0;
        for (int i = 0; i < arr.length; i++) {
            if (arr[i]%10!=7&&arr[i]/10%10!=7&&arr[i]%2!=0){
                sum+=arr[i];
            }

        }
        System.out.println("数组元素之和:"+sum);
    }
}
